
import service from "../util/service"
export function link(url,method){
    return new Promise((resolve,reject)=>{
        service.request({
            url,
            method
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}